# -*- coding:utf-8 -*-

import time, hmac, traceback
from server import mysql, cache
from server.util import sqlBuild, stringUtil


class timepiece(object):
    def __init__(self):
        self.db, self.re = mysql.DBService(), cache.re().redis
        self.tasks = []

    def search(self):
        script = sqlBuild.sqlDict["select_taskPlan_needwork"]
        for each in script:
            self.tasks.append(script)
